package com.whmskj.xjlhbc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whmskj.xjlhbc.domain.Bchb06cpcmrjdb;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper

public interface Bchb06cpcmrjdbMapper extends BaseMapper<Bchb06cpcmrjdb> {

    @Select("select tjdate,sum(mbdrcl)mbdrcl,sum(pjdrcl)pjdrcl from bchb06cpcmrjdb where tjdate between #{start} and #{end} group by tjdate")
    List<Bchb06cpcmrjdb> queryGroupByTjdate(@Param("start") String start, @Param("end") String end);
}
